import React from 'react'
import ReactDOM from 'react-dom'

// class 组件
class MyElement extends React.Component {
  render() {
    return <h1>Hello { this.props.name }</h1>
  }
}

// const element = new MyElement({name: '千锋'}).render()

ReactDOM.render(
  <MyElement name="world" />,
  document.getElementById('root')
)
